//$base-color: #7c92ae;
//$base-color: #333333;
$base_color: #2b4164;

/** $base-gradient:
    flat: No gradient.
    matte: A subtle gradient.
    bevel: A medium gradient.
    glossy: A glassy style gradient.
    recessed: A reversed gradient.
*/
$base-gradient: 'bevel';
//$active-color: darken(saturate($base-color, 55%), 90%);
$active-color: #6666ff;

//$list-active-gradient: 'bevel';
//$list-header-bg-color: transparentize (
//    saturate($base-color, 10%), 1
//);
//$liste-header-gradient: 'matte';

//$active-color: #9999ff;

//$tabs-dark: #666;

// -----------------------------------------------------------------------------
$body-bg-color: #000;
 
$base-color: #2b4164;
$base-gradient: 'matte';
$active-color: #eee;
 
$tabs-dark: $base-color;
$tabs-light: #555;
 
$tabs-bottom-radius: .4em;
$tabs-bottom-gradient: 'bevel';
$tabs-bar-gradient: 'matte';
$tabs-bottom-active-gradient: 'recessed';
 
$toolbar-gradient: 'glossy';
// -----------------------------------------------------------------------------

@import 'sencha-touch/default/all';

// You may remove any of the following modules that you
// do not use in order to create a smaller css file.
@include sencha-panel;
@include sencha-buttons;
@include sencha-sheet;
@include sencha-picker;
@include sencha-tabs;
@include sencha-toolbar;
@include sencha-toolbar-forms;
@include sencha-indexbar;
@include sencha-list;
@include sencha-layout;
@include sencha-carousel;
@include sencha-form;
@include sencha-msgbox;

// -----------------------------------------------------------------------------
@mixin gradient($first, $second) {
  background: $second;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$first', endColorstr='$second');
  background: -webkit-gradient(linear, left top, left bottom, from($first), to($second));
  background: -moz-linear-gradient(top,  $first,  $second);
}

@mixin transparent-gradient-light-gray() {
background: -moz-linear-gradient(top,  rgba(255,255,255,0.9) 0%, rgba(243,243,243,0.9) 50%, rgba(237,237,237,0.9) 51%, rgba(255,255,255,0.9) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.9)), color-stop(50%,rgba(243,243,243,0.9)), color-stop(51%,rgba(237,237,237,0.9)), color-stop(100%,rgba(255,255,255,0.9))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  rgba(255,255,255,0.9) 0%,rgba(243,243,243,0.9) 50%,rgba(237,237,237,0.9) 51%,rgba(255,255,255,0.9) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  rgba(255,255,255,0.9) 0%,rgba(243,243,243,0.9) 50%,rgba(237,237,237,0.9) 51%,rgba(255,255,255,0.9) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(255,255,255,0.9) 0%,rgba(243,243,243,0.9) 50%,rgba(237,237,237,0.9) 51%,rgba(255,255,255,0.9) 100%); /* IE10+ */
background: linear-gradient(top,  rgba(255,255,255,0.9) 0%,rgba(243,243,243,0.9) 50%,rgba(237,237,237,0.9) 51%,rgba(255,255,255,0.9) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e6ffffff', endColorstr='#e6ffffff',GradientType=0 ); /* IE6-9 */
}

@mixin black-dark() {
background: rgb(69,72,77); /* Old browsers */
background: -moz-linear-gradient(top, rgba(69,72,77,1) 0%, rgba(0,0,0,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(69,72,77,1)), color-stop(100%,rgba(0,0,0,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(69,72,77,1) 0%,rgba(0,0,0,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(69,72,77,1) 0%,rgba(0,0,0,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(69,72,77,1) 0%,rgba(0,0,0,1) 100%); /* IE10+ */
background: linear-gradient(top, rgba(69,72,77,1) 0%,rgba(0,0,0,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=0 ); /* IE6-9 */    
}
// -----------------------------------------------------------------------------
.gradient {
  @include gradient(black, white);
}

$boxnews_padding : 4;
$boxnews_height: 10em;

$blue: #3bbfce;
$margin: 16px;
 
.content-navigation {
    border-color: $blue;
    color: darken($blue, 9%);
}
 
.border {
    padding: $margin / 2;
    margin: $margin / 2;
    border-color: $blue;
}

.boxcontainer{
    @include background-gradient(#333, 'bevel');
}
.boxnews{
    //background-color: #666;
    //@include gradient(black, white);
    @include transparent-gradient-light-gray;
    //@include background-gradient(#fff, 'glossy');
    color: #000;
    padding: $margin / 2;
    margin: ($margin / 2) 0;
    @include border-radius($boxnews_height/24);
    border: 1px solid #ccc;
    border-top: 1px solid #fff;
}
.boxnews h1{
    font-size: 14pt;    
}

.boxnews .date{
    font-size: 10pt;
    color: #999;
}

//------------------------------------------------------------------------------

.news, .news-first{
    color: #000;
/*    padding: $margin / 2;
    margin: $margin / 2;
    @include border-radius($boxnews_height/24);*/
    border-bottom: 1px solid #ccc;
/*    border-top: 1px solid #fff;*/
    padding: 0 0 $margin/2 0;
}
.news-first h1{
    color: lighten($base_color, 20%);
    font-size: 24pt;
    padding: 0 0 $margin/4 0;
    margin: 0;
    /*font-weight: bold;*/
}
.news-first p{
    color: lighten(black, 20%);
    font-size: 10pt;
    padding: 0 0 $margin/4 0;
    margin: 0;    
}
.news h1{
    font-size: 14pt;
    color: lighten($base_color, 10%);
    padding: 0 0 $margin/4 0;
    margin: $margin/2 0 0 0;
    /*font-weight: bold;*/
}

.news .date, .news-first .date{
    font-size: 10pt;
    color: #999;
}

//------------------------------------------------------------------------------
body{
    padding: 0;
    margin: 0;
}
.boxnews-dark{
    @include black-dark;
    //@include background-gradient(#fff, 'glossy');
    color: white;
    padding: $margin / 2;
    margin: ($margin / 2) 0;
    @include border-radius($boxnews_height/24);
    border: 1px solid #000;
    border-top: 1px solid #666;
}
.boxnews-dark h1{
    color: white;
    font-size: 14pt;    
}
.boxnews-dark .first h1{
    color: white;
    font-size: 24pt;
    padding: 0 0 $margin/4 0;
    margin: 0;
    font-weight: bold;
}
.boxnews-dark p{
    color: darken(white, 20%);
    font-size: 10pt;
    padding: 0 0 $margin/4 0;
    margin: 0;    
}
.boxnews-dark .date{
    font-size: 10pt;
    color: #999;
}